var { nativeCreate } = require("./08_cache");

function Ctor() {}

// Object.create
function baseCreate(proto) {
  if (proto == null) return {};
  if (nativeCreate) return nativeCreate(proto);
  Ctor.prototype = proto;
  var result = new Ctor();
  Ctor.prototype = null;
  return result;
}

module.exports = baseCreate;
